<template>
  <div>
    <h1>我是MORE的孩子</h1>
    <h2>{{ uname }}</h2>
    <button @click="fn">改变</button>
  </div>
</template>

<script>
export default {
  props: {
    uname: String,
  },
  data() {
    return {
      msg: "人生在世，却是跳不出七情六欲关头，打不破酒色财气圈子",
    };
  },
  methods: {
    harry() {
      console.log("既是浮生若梦，何不此处销魂");
    },
    fn() {
      this.$emit("update:uname", "456789");
    },
  },
};
</script>

<style></style>
